import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("sys_log",{schema:"nest-mall" } )
export class SysLog {

    @PrimaryGeneratedColumn({
        type:"bigint", 
        name:"id"
        })
    id:string;
        

    @Column("varchar",{ 
        nullable:true,
        length:50,
        name:"username"
        })
    username:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:50,
        name:"operation"
        })
    operation:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:200,
        name:"method"
        })
    method:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:5000,
        name:"params"
        })
    params:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:64,
        name:"ip"
        })
    ip:string | null;
        

    @Column("datetime",{ 
        nullable:true,
        name:"create_date"
        })
    createDate:Date | null;
        
}
